package com.wxyzz.cem.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author xclhove
 */

@Getter
@AllArgsConstructor
public enum ResultType {
    SUCCESS(200, "操作成功！"),
    SERVICE_EXCEPTION(500, "操作失败！"),
    SYSTEM_EXCEPTION(501, "系统异常，请联系管理员！"),
    USER_SERVICE_EXCEPTION(510, "用户服务异常！"),
    USER_LOGIN_STATUS_EXCEPTION(515, "用户登录状态异常！"),
    BACK_ADMIN_SERVICE_EXCEPTION(520, "后台管理员服务异常！"),
    BACK_ADMIN_LOGIN_STATUS_EXCEPTION(525, "后台管理员登录状态异常！"),
    BALANCE_APPLY_SERVICE_EXCEPTION(530, "班费申请服务异常！"),
    CLASS_INFO_SERVICE_EXCEPTION(540, "班级信息服务异常！"),
    PAYMENT_PROJECT_SERVICE_EXCEPTION(550, "缴费项目服务异常！"),
    PAYMENT_RECORD_SERVICE_EXCEPTION(560, "缴费记录服务异常！"),
    ;
    private final Integer code;
    private final String message;
}
